/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/*font*/
:root {
    --vp-font-family-base: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --vp-font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/*image*/
figure figcaption {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--vp-c-text-3);
    font-size: 13px;
    font-weight: 400;
}

.main figure>img {
    border-radius: .5rem;
    box-shadow: 0 .5rem .8rem #d7d7d7;
    margin-bottom: .8rem;
    margin-left: auto;
    margin-right: auto;
    max-height: 16rem;
}

.dark .main figure>img {
    box-shadow: none;
    background: var(--vp-c-default-1);
}
/* 图片点击放大优先级调整 */
.medium-zoom-image, .medium-zoom-overlay {
    z-index: 100;
}

/*title style*/
.vp-doc h1 {
    font-size: 25px;
    margin-bottom: 20px;
}

.vp-doc h2 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 20px
}

.vp-doc h3 {
    font-size: 19px;
    margin-top: 24px;
    margin-bottom: 12px
}

.vp-doc h4 {
    font-size: 17px;
    margin-top: 20px;
    margin-bottom: 10px
}

/*侧边栏文字超出隐藏*/
.VPSidebarItem .VPLink p {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 200px;
}
/*翻页按钮标题文字超出隐藏*/
.VPDocFooter .pager .title {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
/*文字加粗样式修改*/
.vp-doc strong {
    font-weight: normal;
    color: #5571cb;
    padding: 0 4px;
}
/*引用样式修改*/
.vp-doc blockquote {
    border-left: 4px solid #5571cb;
    border-radius: 4px;
    background-color: var(--vp-badge-tip-bg);
}
.vp-doc a {
    padding: 0 4px;
}

/*blur navBar*/
:root {
    --nav-c-bg: rgba(255, 255, 255, 0.5);
    --vp-c-gutter: rgba(226, 226, 227, 0);
    --backdrop-filter: saturate(180%) blur(20px);
}

.dark {
    --nav-c-bg: rgba(30, 30, 32, 0.5);
    --vp-c-gutter: rgba(30, 30, 32, 0.5);
}
.VPNavBar > .divider {
    display: none !important;
}
.VPLocalNavOutlineDropdown > .items {
    /*gap: 0;*/
    background-color: var(--vp-c-bg);
}
.content-body, .VPNavBar {
    background: transparent !important;
}

.VPNavBar, .VPLocalNav {
    background: var(--nav-c-bg) !important;
    border-bottom: none;
    backdrop-filter: var(--backdrop-filter);
    /*-webkit-backdrop-filter: var(--backdrop-filter);*/
}
